package io.renren.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.renren.modules.sys.dao.SysCodetypeDao;
import io.renren.modules.sys.entity.SysCodetypeEntity;
import io.renren.modules.sys.service.SysCodetypeService;



@Service("sysCodetypeService")
public class SysCodetypeServiceImpl implements SysCodetypeService {
	@Autowired
	private SysCodetypeDao sysCodetypeDao;
	
	@Override
	public SysCodetypeEntity queryObject(Long id){
		return sysCodetypeDao.queryObject(id);
	}
	
	@Override
	public List<SysCodetypeEntity> queryList(Map<String, Object> map){
		return sysCodetypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysCodetypeDao.queryTotal(map);
	}
	
	@Override
	public void save(SysCodetypeEntity sysCodetype){
		sysCodetypeDao.save(sysCodetype);
	}
	
	@Override
	public void update(SysCodetypeEntity sysCodetype){
		sysCodetypeDao.update(sysCodetype);
	}
	
	@Override
	public void delete(Long id){
		sysCodetypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysCodetypeDao.deleteBatch(ids);
	}

	@Override
	public SysCodetypeEntity queryObjectByCode(String typeCode) {
		return sysCodetypeDao.queryObjectByCode(typeCode);
	}

	@Override
	public SysCodetypeEntity queryByTypeCode(String typeCode) {
		return sysCodetypeDao.queryObjectByCode(typeCode);
	}
	
}
